<template>
  <div>
    <mt-swipe :auto="4000">
      <!--  lunbotuList是父组件传递给子组件的值 -->
      <mt-swipe-item v-for="item in lunbotuList" :key="item.img">
        <img :src="item.img" :class="{ full: isfull }" />
      </mt-swipe-item>
    </mt-swipe>
  </div>
</template>
<script>
  export default {
    props: ['lunbotuList', 'isfull'],
  }
</script>
<style lang="scss" scoped>
  .mint-swipe {
    text-align: center;
    height: 180px;
    /*.mint-swipe-item {
        &:nth-child(1) {
          background: rgb(112, 111, 111);
        }
        &:nth-child(2) {
          background: blue;
        }
        &:nth-child(3) {
          background: cyan;
        }}*/
    img {
      height: 100%;
    }
  }
  .full {
    width: 100%;
  }
</style>